package com.cx.controller.admin.activity;

import java.util.List;

import javax.annotation.Resource;

import com.cx.service.admin.basic.ChainBasicOrgManager;
import org.cx.base.ApiModel;
import org.cx.base.BaseController;
import org.cx.entity.Page;
import org.cx.entity.PageData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.cx.service.activity.ActivityManager;


@RestController("admin/activity")
@RequestMapping("admin/activity")
public class ActivityController extends BaseController{

	   @Resource
	   private ActivityManager activityService;


    @ResponseBody
    @RequestMapping(value = "selectAllList")
    public ApiModel selectAllList() throws Exception {
    	Page page = new Page();
    	List<PageData> list = activityService.selectAllList(page);
    	page.setPd(list);
    	return buildSuccMsg(page);
    }




}